{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>课程列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <div class="row">

            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr class="long-tr">
                            <th>ID</th>
                            <th>所属学校</th>
                            <th>年级</th>
                            <th>操作</th>
                        </tr>
                        </thead>


                        {foreach name="list" item="vo"}
                            <tr class="long-td">
                                <td>{$vo.id}</td>
                                <td>{$instit_info.name}</td>
                                <td>{$vo.nianji}</td>
                                <td>
                                    <a href="javascript:;" onclick="nianji_course_edit({$vo.id})" class="btn btn-primary btn-xs">
                                        <i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
                                    <!--<a href="javascript:;" onclick="course_del({{d[i].id}})" class="btn btn-danger btn-xs">-->
                                    <!--<i class="fa fa-trash-o"></i> 删除</a>-->
                                </td>
                            </tr>
                        {/foreach}

                        <tbody id="list-content"></tbody>
                    </table>
                    <div id="AjaxPage" style=" text-align: right;"></div>
                    <div id="allpage" style=" text-align: right;"></div>
                </div>
            </div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>

<!-- 加载动画 -->


{include file="public/footer" /}
<script type="text/javascript">
    //编辑课程
    function nianji_course_edit(id){
        location.href = './nianji_course_edit/id/'+id+'.html';
    }

    //删除课程
    //    function course_del(id){
    //        lunhui.confirm(id,'{:url("course_del")}');
    //    }


</script>
</body>
</html>